export function setSelectList (data, val) {
    for (let item of data) {
        item.label = item[val.label]
        item.value = item[val.value]
    }
    return data;
}
export function setCascaderList (data, val) {
    for (let item of data) {
        item.label = item[val.mt][val.label]
        item.value = item[val.mt][val.value]
        item.children = item[val.child]
        if (item[val.child] && item[val.child].length) {
             setCascaderList(item[val.child], val)
        }
      }
}